home *** CD-ROM | disk | FTP | other *** search
- Unit spx_flc;
-
- {$X+,O+ }
- { SPX Library Version 3.0 Copyright 1994 Scott D. Ramsay }
-
- Interface
-
- Uses spx_tim,spx_vga,spx_dos,spx_fnc,spx_lib;
-
- const
- FLC_NOERROR = 0;
- FLC_FINISHLOOP = 1;
- FLC_ERRORNOTFOUND = -1;
- FLC_ERRORNOTFLC = -2;
- FLC_ERRORREAD = -3;
- FLC_ERRORBADFRAME = -4;
- FLC_ERRORTOOBIG = -5;
-
- type
- FLC_TYPE = record
- flcfile : file; { file handle }
- isok, { file running ok }
- isflc, { is .fli or (.flc/.cel) }
- iscel : boolean; { is .flc or .cel }
- speed, { speed in ms or jiffys }
- smark, { last frame tick count }
- flcf1,flcf2 : longint; { 1st/2nd frame file offsets }
- frames,cfrm : word; { num frames, current frame }
- x,y,w,h : word; { flic x,y, width /height }
- workmem : pointer; { work memory pointer }
- end;
-
- var
- flcdac : RGBlist; { current flic palette }
-
- function flc_open(name:string;var flc:FLC_TYPE):integer;
- function flc_frame(var flc:FLC_TYPE):integer;
- procedure flc_close(var flc:FLC_TYPE);
- function flc_play(name:string):integer; { just plays anim once, no abort }
-
- function flc_openLib(lib:pSpxLib;name:string;var flc:FLC_TYPE):integer;
- function flc_playLib(lib:pSpxLib;name:string):integer;
-
-